package com.hc.pingtan.controller;


import com.github.pagehelper.PageInfo;
import com.hc.pingtan.model.CommonResult;
import com.hc.pingtan.model.KekeWitkeyTask;
import com.hc.pingtan.model.KekeWitkeyTaskQuery;
import com.hc.pingtan.model.QsJobs;
import com.hc.pingtan.service.IQsJobsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 人才控制器
 * </p>
 *
 * @author
 * @since 2021-10-27
 */
@Api(tags = "人才招聘")
@RestController
@RequestMapping("/qs-jobs")
public class QsJobsController {

    @Autowired
    IQsJobsService mQsJobServiceImpl;
    @ApiOperation("人才列表")
    @RequestMapping("findQsJobsList")
    public CommonResult<List<QsJobs>> findQsJobsList() {
        return CommonResult.<List<QsJobs>>builder().result(mQsJobServiceImpl.findQsJobs()).build();
    }

    @ApiOperation("根据JOBID 查询 发布者手机号")
    @RequestMapping("findQsJobMember")
    public CommonResult<String> findQsJobsList(String jobId) {
        return CommonResult.<String>builder().result(mQsJobServiceImpl.findQsJobMember(jobId)).build();
    }


}
